const { contextBridge, ipcRenderer } = require('electron');

// 暴露给渲染进程的API
contextBridge.exposeInMainWorld('electronAPI', {
  // 打开外部链接
  openExternalLink: (url) => ipcRenderer.invoke('open-external-link', url)
});